package com.example.iread.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.iread.R;


public class BookDescFragment extends Fragment {

    private String bookInfo;

    public BookDescFragment() {}

    public BookDescFragment(String bookInfo) {
        this.bookInfo = bookInfo;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_book_desc, container, false);

        TextView tv_book_info = view.findViewById(R.id.tv_book_info);

        tv_book_info.setText(bookInfo);

        return view;
    }
}